
#ifndef _RibbonMenu_H_
#define _RibbonMenu_H_

#include "RibbonApi.hpp"

#include <QMenu>
#include <QWidget>
#include <QVBoxLayout>
#include <QStyle>
#include <QLabel>
#include <QToolButton>
#include <QPushButton>

namespace NSRibbon {

	class RIBBONAPI RibbonMenu : public QWidget {
	public:
		RibbonMenu(QString name = QString(), QIcon icon = QIcon(), QWidget* p = nullptr);
		~RibbonMenu();

	public:
		void addAction(QAction* action);
		void addActionsEx(QList<QAction*> actions);
		void addSeparator();
		void setMenuSize(QSize size);
		void setMenuIconSize(QSize size);
	private:
		QVBoxLayout* m_layout;
		QPushButton* m_btn;
		QMenu* m_menu;

	};

}

#endif